package com.hongfeng.support.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.hongfeng.support.model.common.BaseEntity;

/**
 * 
 * <汽车类型>
 *
 * @author llc
 * @date 创建时间：2012-12-5 下午04:38:46
 */
@Entity
@Table(name = "auto_type")
public class AutoType extends BaseEntity {

	private static final long serialVersionUID = 6750095123224430637L;
	@Id
	@GeneratedValue
	private Long id;
	// 类型名称
	@Column(name = "name", length = 100, nullable = false)
	private String name;
	// 备注
	@Column(name = "memo", length = 200)
	private String memo;
	@ManyToOne
	@JoinColumn(name = "brand_id")
	private AutoBrand autoBrand;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public AutoBrand getAutoBrand() {
		return autoBrand;
	}

	public void setAutoBrand(AutoBrand autoBrand) {
		this.autoBrand = autoBrand;
	}

}
